package com.ruoyi.pet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pet.mapper.PetVaccineMapper;
import com.ruoyi.pet.domain.PetVaccine;
import com.ruoyi.pet.service.IPetVaccineService;

/**
 * 疫苗注射Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-01
 */
@Service
public class PetVaccineServiceImpl implements IPetVaccineService 
{
    @Autowired
    private PetVaccineMapper petVaccineMapper;

    /**
     * 查询疫苗注射
     * 
     * @param id 疫苗注射主键
     * @return 疫苗注射
     */
    @Override
    public PetVaccine selectPetVaccineById(Long id)
    {
        return petVaccineMapper.selectPetVaccineById(id);
    }

    /**
     * 查询疫苗注射列表
     * 
     * @param petVaccine 疫苗注射
     * @return 疫苗注射
     */
    @Override
    public List<PetVaccine> selectPetVaccineList(PetVaccine petVaccine)
    {
        return petVaccineMapper.selectPetVaccineList(petVaccine);
    }

    /**
     * 新增疫苗注射
     * 
     * @param petVaccine 疫苗注射
     * @return 结果
     */
    @Override
    public int insertPetVaccine(PetVaccine petVaccine)
    {
        return petVaccineMapper.insertPetVaccine(petVaccine);
    }

    /**
     * 修改疫苗注射
     * 
     * @param petVaccine 疫苗注射
     * @return 结果
     */
    @Override
    public int updatePetVaccine(PetVaccine petVaccine)
    {
        return petVaccineMapper.updatePetVaccine(petVaccine);
    }

    /**
     * 批量删除疫苗注射
     * 
     * @param ids 需要删除的疫苗注射主键
     * @return 结果
     */
    @Override
    public int deletePetVaccineByIds(Long[] ids)
    {
        return petVaccineMapper.deletePetVaccineByIds(ids);
    }

    /**
     * 删除疫苗注射信息
     * 
     * @param id 疫苗注射主键
     * @return 结果
     */
    @Override
    public int deletePetVaccineById(Long id)
    {
        return petVaccineMapper.deletePetVaccineById(id);
    }
}
